<?php
namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; class ProductCountWarn extends Mailable { use Queueable, SerializesModels; public $tries = 3; public $timeout = 20; public $product = null; public $product_count = null; public function __construct($spfd49bd, $spf0b848) { $this->product = $spfd49bd; $this->product_count = $spf0b848; } public function build() { return $this->subject('您的商品库存不足-' . config('app.name'))->view('emails.product_count_warn'); } }